module.exports = (app) => {
  const mongoose = require("mongoose")
  const models = require("require-all")(__dirname + "/../models")

  mongoose.connect("mongodb://127.0.0.1:27017/danmu", {
    useNewUrlParser: true,
    useUnifiedTopology: true,
    useCreateIndex: true,
    useFindAndModify: false,
  })
}
